<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function check(form)
{
	var r="";
	if(form.name.value == "")
	{
		r += "名称不能为空\n\r";
	}
	if(form.url.value == "")
	{
		r += "活动链接不能为空"
	}
	if(r.length != 0)
	{
		alert(r);
		return false;
	}
	return true;
}
</script>
</head>
<body>
<form action="" name="form">
	<input type="text" name="name"></br>
	<input type="text" name="url"><br/>
	<input type="submit" onclick="javascript:return check(this.form)">
</form>
</body>
</html>